﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using System.Threading.Tasks;

namespace bordspil.Controllers
{   
    public class GameHub : Hub
    {
        public void Join(string groupId)
        {
            Groups.Add(Context.ConnectionId, groupId);
        }

        public void ClickColumn(string groupName, string cellId)
        {
            Clients.OthersInGroup(groupName).cellClicked(cellId);

        }
    }
}